package com.example.demo.alex.service;

import com.example.demo.alex.model.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName RoleService
 * @Author zjg
 * @Date 2018/12/2516:41
 * @Version 2.0
 */
public interface RoleService {
    List<Role> findRoleByUserName(@Param("userName")String userName);
    //根据resource的主键查找所有的权限
    List<Role> findRolesByResourceId(@Param("id")Long id);
}
